package com.lei2j.command;

public class Control {

	private Command command;
	
	public Control(Command command) {
		this.command = command;
	}

	public Command getCommand() {
		return command;
	}

	public void setCommand(Command command) {
		this.command = command;
	}
	
	public void buttonPressed() {
		command.execute();
	}
}
